package HomeWork.Extends_06;

public class Test {
    public static void main(String[] args) {
        FeedMan feedMan = new FeedMan();
        Dog dog = new Dog();
        Ghost ghost = new Ghost();
        Frog frog = new Frog();
        feedMan.feedAnimals(dog);
        dog.swim();
        feedMan.feedAnimals(ghost);
        feedMan.feedAnimals(frog);
        frog.swim();
    }
}
